//
//  Programs.h
//  iPLayer-ipad
//
//  Created by Chris Greening on 06/05/2010.
//  Copyright 2010 CMG Research. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HttpDownloader.h"
#import "ImageDownloaderQueue.h"

@protocol ShowProgramDelegate<NSObject>

-(void) showMovie:(NSString *) moviePageUrl;

@end


@interface Programs : UIViewController<HttpDownloaderDelegate> {
	NSString *feedUrl;
	HttpDownloader *feedDownloader;
	ImageDownloaderQueue *imageDownloader;
	NSMutableArray *tvShows;
	NSMutableArray *radioShows;
	id<ShowProgramDelegate> delegate;
	UITableView *tableView;
	UISegmentedControl *tvRadioSwitch;
}

@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, copy) NSString *feedUrl;
@property (assign, nonatomic) id<ShowProgramDelegate> delegate;
@property (retain, nonatomic) IBOutlet UISegmentedControl *tvRadioSwitch;

-(IBAction) switchTVRadio;

@end
